//
//  ContentModeViewController.m
//  svqj
//
//  Created by xftt on 14-6-23.
//
//

#import "ContentModeViewController.h"

@interface ContentModeViewController ()
@end

@implementation ContentModeViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    UIView *_cview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 844, 748)];
    [_cview setBackgroundColor:[UIColor colorWithHexString:@"#343434"]];
    [self.view addSubview:_cview];
    _backView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 100, 50)];
    [_backView setBackgroundColor:[UIColor clearColor]];
    [_backView setUserInteractionEnabled:YES];
    [_backView setHidden:YES];
    [_cview addSubview:_backView];
    UIImageView *imgv = [[UIImageView alloc]initWithFrame:CGRectMake(16, 16, 10, 18)];
    [imgv setImage:[UIImage imageNamed:@"Goto"]];
    [imgv setTransform:CGAffineTransformRotate(imgv.transform, M_PI)];
    [_backView addSubview:imgv];
    UILabel *lbBack = [[UILabel alloc]initWithFrame:CGRectMake(35, 13,100, 25)];
    [lbBack setBackgroundColor:[UIColor clearColor]];
    [lbBack setTextColor:[UIColor lightTextColor]];
    [lbBack setText:@"返回目录"];
    [lbBack setFont:[UIFont systemFontOfSize:17]];
    [_backView addSubview:lbBack];
    _lbTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 844, 50)];
    [_lbTitle setTextAlignment:NSTextAlignmentCenter];
    [_lbTitle setTextColor:[UIColor lightTextColor]];
    [_lbTitle setBackgroundColor:[UIColor clearColor]];
    [_lbTitle setFont:[UIFont systemFontOfSize:17]];
    NSUserDefaults *_Data = [NSUserDefaults standardUserDefaults];
    [_lbTitle setText:[_Data objectForKey:@"titleApp"]];
    [_cview addSubview:_lbTitle];
    _editButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _editButton.frame = CGRectMake(734, 5, 100, 40);
    [_editButton setTitleColor:[UIColor colorWithHexString:@"#AAAAAA"] forState:UIControlStateNormal];
    [_editButton setTitle:@"编辑" forState:UIControlStateNormal];
    [_cview addSubview:_editButton];
    _contentView = [[UIView alloc] initWithFrame:CGRectMake(0, 50, 844, 698)];
    [_contentView setBackgroundColor:[UIColor colorWithHexString:@"#444444"]];
    [_cview addSubview:_contentView];
}

- (void)saveSort:(NSDictionary*)qj from:(NSDictionary*)qjing
{
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
